var chatRoom=require('./chatRoom');

function uploadSelect(fields,response){
	var uploadtype=fields.uploadtype;
	if(uploadtype=='message.html_upload'){
		chatRoom.onRequestMessageFile(fields,response);
	}else{
		response.write('success');
		response.end();
	}
}

exports.uploadSelect=uploadSelect;